
`timescale 1ns/1ns

module tb_counter;
reg clock,clear,count_enable;
wire [3:0] Q;

initial
begin
     clock<=0;clear<=0;count_enable<=1;
#100 clear<=1;count_enable<=1; 
//#300 clear<=0;count_enable<=0;  

end
initial
begin
    	$fsdbDumpfile("counter.fsdb");
	  $fsdbDumpvars;
	  #1000 ;
	  $stop;
end

always
#20 clock<=~clock;
counter my_counter(clock,clear,count_enable,Q);
endmodule
